// 引入组件
import home from '../pages/home'
import classification from '../pages/classification'
import cart from '../pages/cart'
import user from '../pages/user'
import detail from '../pages/detail'
import login from '../pages/login'
import order from '../pages/order'
import personal_information from '../pages/personal_information'
import setting from '../pages/setting'
import mange_address from '../pages/mange_address'
import create_address from '../pages/create_address'
import update_address from '../pages/update_address'
import recommend from '../pages/recommend'
import fill_order from '../pages/fill_order'
import pay from '../pages/pay'
import pay_result from '../pages/pay_result'
export default [
	// 首页
    {
        path:'/home',
		name:'home',
        component:home,
    },
	// 分类
	{
	    path:'/classification',
		name:'classification',
	    component:classification,
	},
	// 购物车
	{
	    path:'/cart',
		name:'cart',
	    component:cart,
	},
	// 用户
	{
	    path:'/user',
		name:'user',
	    component:user,
	},
	// 商品详细
	{
	    path:'/detail',
		name:'detail',
	    component:detail,
	},
	// 登录页面
	{
	    path:'/login',
		name:'login',
	    component:login,
	},
	// 订单页面
	{
	    path:'/order',
		name:'order',
	    component:order,
	},
	// 个人信息页面
	{
	    path:'/personal_information',
		name:'personal_information',
	    component:personal_information,
	},
	// 设置页面
	{
	    path:'/setting',
		name:'setting',
	    component:setting,
	},
	// 地址页面
	{
	    path:'/mange_address',
		name:'mange_address',
	    component:mange_address,
	},
	// 新建地址页面
	{
	    path:'/create_address',
		name:'create_address',
	    component:create_address,
	},
	// 修改地址页面
	{
	    path:'/update_address',
		name:'update_address',
	    component:update_address,
	},
	//推荐页面
	{
	    path:'/recommend',
		name:'recommend',
	    component:recommend,
	},
	// 填写订单页面
	{
	    path:'/fill_order',
		name:'fill_order',
	    component:fill_order,
	},
	// 支付页面
	{
	    path:'/pay',
		name:'pay',
	    component:pay,
	},
	// 支付结果
	{
		path:'/pay_result',
		name:'pay_result',
		component:pay_result,
	},
    {
        // 重定向--项目跑起来的时候访问'/'，定向到首页
        path:'*',
        redirect:'/home'
    }
   ]